#include<bits/stdc++.h>
using namespace std;
vector<int> s;
int a[100005];
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n,sum;
    scanf("%d",&n);
    sum=n;
    for(int i=1;i<=n;i++){
        scanf("%d",&a[i]);
    }
    sort(a+1,a+n+1);
    s.push_back(a[1]);
    for(int i=2;i<=n;i++){
        if(a[i]>s[0]) {
            s.erase(s.begin());
            sum--;
        }
        s.push_back(a[i]);
    }
    printf("%d\n",sum);
    return 0;
}